package dto

import "go.mongodb.org/mongo-driver/bson/primitive"

type UserBasicDto struct {
}

type UserLoginDto struct {
	Account  string `json:"account" binding:"required"`
	Password string `json:"password" binding:"required"`
}

// 用户注册的dto
type UserRegistration struct {
	Email string `bson:"email" json:"email" binding:"required"`
}

// 获取用户消息列表的Dto
type UserMsgDto struct {
	PgSize int64 `json:"pgSize" binding:"required"`
	PgNum  int64 `json:"pgNum" binding:"required"`
}

//注册用户的dto

type SignUpDto struct {
	Email     string `json:"email" binding:"required"`
	Account   string `json:"account" binding:"required"`
	Password  string `json:"password" binding:"required"`
	EmailCode string `json:"emailCode" binding:"required"`
	NickName  string `json:"nickName"`
}

type UpdateUserDto struct {
	NickName string `json:"nickName" form:"nickName"`
	Avatar   string `json:"avatar" form:"avatar"`
}

// 添加好友的dto
type AddFriendsDto struct {
	ID       primitive.ObjectID `json:"id"`
	FriendId string             `json:"friendId"`
	AddType  int64              `json:"addType"`
}

// 返回图片url
type RepImg struct {
	Msg  string  `json:"msg"`
	Data DataUrl `json:"data"`
}

type DataUrl struct {
	Url string `json:"url"`
}
